/*清除浮动*/
.clearfix:after {
    content: '';
    display: block;
    clear: both;
    height: 0;
}

/*版心*/
.container {
    width: 1200px;
    margin: 0 auto;

}

// 页面底色
body {
    background-color: #F6F6F6;
}

/*顶部*/
#header {
    height: 160px;
    background-color: white;

    .logo {
        float: left;
        width: 225px;
        height: 75px;
        margin-top: 50px;
        margin-left: 20px;

        img {
            float: left;
            width: 75px;
            height: 75px;
            vertical-align: middle;
        }

        .pagename {
            width: 135px;
            float: left;
            margin-left: 15px;
            text-align: center;
            margin-top: 6px;

            h1 {
                font-size: 28px;
                font-weight: bold;
                line-height: 40px;
            }

            .pinyin {
                display: inline-block;
                font-size: 12px;
                line-height: 17px;
                transform: scale(.8);
                // margin-left: -14px;
            }
        }
    }

    form {
        float: left;
        width: 532px;
        height: 48px;
        margin-top: 50px;
        margin-left: 110px;
        position: relative;

        .searchDiv {
            width: 532px;
            height: 44px;
            background: url(../static/images/search.png) no-repeat center left 15px/20px 20px;
            border: 3px solid #000;
            border-radius: 24px;
        }

        input {
            width: 355px;
            height: 42px;
            font-size: 16px;
            border: 0 solid #000;
            position: absolute;
            top: 3px;
            left: 50px;

            &:focus {
                outline: 0 solid #000;
                background: none;
            }
        }

        .sbtn {
            width: 124px;
            height: 40px;
            font-size: 14px;
            line-height: 40px;
            text-align: center;
            border-radius: 20px;
            background-color: #FEE44E;
            position: absolute;
            top: 5px;
            right: -2px;
            cursor: pointer;
        }
    }

    .promise {
        float: right;
        width: 268px;

        .promiseItem {
            float: left;
            font-size: 12px;
            line-height: 18px;
            margin-right: 25px;
            margin-top: 43px;

            img {
                width: 40px;
                height: 40px;
            }
        }
    }
}

/*导航栏*/
#nav {
    height: 46px;
    background-color: #43240C;

    ul li {
        width: 166px;
        height: 46px;
        float: left;
        line-height: 46px;
        text-align: center;
        cursor: pointer;
        cursor: hander;

        a {
            color: white;
            font-size: 16px;
        }

        &:hover {
            background-color: #FEE44E;

            a {
                color: black;
            }
        }
    }

    ul li:first-child {
        width: 220px;
    }

    .active {
        background-color: #FEE44E;

        a {
            color: black;
        }
    }
}

/*商品详细信息 卖家信息*/
#productMsg {
    height: 380px;
    padding-top: 20px;

    .bigClass-container {

        width: 242px;
        height: 282px;
        float: left;
        margin-left: 10px;
        position: relative;
        margin-top: 10px;

        ul {
            display: flex;
            flex-wrap: nowrap;
            overflow: hidden;
            // math-style: 20px;
        }

        ul li {
            width: 242px;
            height: 242px;
            // display: none;
            margin-top: 0;

            img {
                width: 242px;
                height: 242px;
                margin-top: 0;
            }
        }

        ol {
            display: flex;
            flex-wrap: nowrap;
            justify-content: space-between;
        }

        ol li {
            float: left;
            width: 40px;
            height: 40px;
            margin: 10px 5px 0 5px;
            cursor: pointer;

            img {
                width: 40px;
                height: 40px;
                margin-top: 0;
            }
        }

        .onol {
            border: 2px solid red;
        }

        .box {
            display: none;
            width: 130px;
            height: 130px;
            background-color: yellow;
            opacity: 0.5;
            position: absolute;
            top: 20px;
            left: 0;
            pointer-events: none;
        }

        .bigClass{
            width: 300px;
            height: 300px;
            position: absolute;
            top: 0px;
            left: 242px;
            z-index: 1;
            overflow: hidden;
            display: none;
            
            img{
                display: block;
                position: absolute;
                top:0;
                left:0;
                margin-top: 0;
            }
        }
    }

    .product {
        height: 360px;
        width: 840px;
        background-color: white;
        float: left;

        img {
            width: 242px;
            height: 242px;
            margin-top: 20px;
            float: left;
        }

        .fontDesc {
            width: 510px;
            height: 310px;
            float: left;
            margin-left: 30px;
            margin-top: 30px;
            position: relative;

            .title {
                font-size: 24px;
                line-height: 30px;
            }

            img {
                width: 24px;
                height: 24px;
                margin-top: 2px;
            }
        }

        .priceSell {
            width: 480px;
            height: 90px;
            background-color: lightgray;
            margin-top: 20px;

            p {
                font-size: 16px;
                color: gray;
                text-decoration: line-through;
                padding: 20px 0 0 20px;
            }

            .nowPrice {
                color: red;
                font-size: 20px;
                margin: 15px 0 0 20px;

                .priceAmount {
                    font-size: 28px;
                    font-weight: bold;
                }

                .quan {
                    display: inline-block;
                    width: 60px;
                    height: 20px;
                    border: 1px solid red;
                    font-size: 14px;
                    text-align: center;
                    line-height: 20px;
                    margin-left: 10px;
                }

                .sellNum {
                    display: inline-block;
                    color: gray;
                    font-size: 14px;
                    margin-left: 100px;
                }
            }
        }

        .buy {
            width: 400px;
            height: 80px;
            // border: 1px solid #000;
            text-align: right;
            position: absolute;
            right: 20px;
            bottom: 20px;

            p {
                font-size: 14px;
                color: red;
                line-height: 30px;

            }

            button {
                width: 180px;
                height: 40px;
                background-color: red;
                border: 0 solid #000;
                border-radius: 10px;
                color: white;
                cursor: pointer;
            }
        }
    }

    .seller {
        width: 270px;
        height: 360px;
        float: left;
        margin-left: 28px;
        border: 1px solid orange;
        background-color: white;

        .stitle {
            width: 270px;
            height: 40px;

            background: linear-gradient(180deg, yellow, white);
        }

        fieldset {
            width: 200px;
            height: 40px;
            border-top: 1px solid #d9e2d9;
            margin-left: 35px;


            legend {
                margin-left: 70px;
                line-height: 40px;
            }
        }

        img {
            width: 150px;
            height: 150px;
            margin: 30px 60px;
        }

        p {
            font-size: 18px;
            text-align: center;
            line-height: 30px;
        }

        ul {
            margin: 10px 0 0 45px;

            li {
                float: left;
                width: 40px;
                font-size: 14px;
                line-height: 20px;
                color: gray;
                margin: 0 10px;

                span {
                    color: orange;
                }
            }
        }
    }
}

#productImg {
    .container {
        background-color: white;
        padding: 10px 0 40px 20px;

        margin-bottom: 30px;

        img {
            display: block;
        }
    }

}

/*返回顶部*/
#backTop {
    width: 60px;
    height: 60px;
    position: fixed;
    top: 50%;
    right: 50px;
    cursor: pointer;

    img {
        width: 60px;
        height: 60px;
    }
}


/*页脚*/
#footer {
    height: 240px;
    background-color: #484848;
    color: white;

    .logoApp {
        img {
            width: 112px;
            height: 112px;
            float: left;
            margin: 37px 20px 0 40px;
        }

        .fontDesc {
            float: left;
            margin-top: 45px;

            h2 {
                font-size: 36px;
                font-weight: bold;
                line-height: 45px;
            }

            p {
                font-size: 18px;
                line-height: 25px;
                margin-left: 10px;
            }
        }

        a {
            font-size: 20px;
            color: white;
            display: inline-block;
            margin: 87px 0 0 190px;
        }
    }

    .copyReg {
        font-size: 18px;
        text-align: center;
        margin-top: 60px;

        img {
            width: 22px;
            height: 22px;
        }
    }
}

/*全国安全可信网站*/
#safe {
    height: 80px;

    a {
        width: 83px;
        height: 30px;
        display: block;
        margin: 5px auto;

        img {
            width: 83px;
            height: 30px;

        }
    }
}